package concurrent_model

import (
	"context"
	"fmt"
	"sync"
)

func worker2(ctx context.Context, wg *sync.WaitGroup) error {
	defer wg.Done()
	for {
		select {
		default:
			fmt.Println("hello")
		case <-ctx.Done():
			fmt.Println("done")
		}
	}
}
